package com.gpframework.module.common.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gpframework.module.common.domain.CommonPhoneMsgTemplate;
import com.gpframework.module.common.domain.vo.CommonPhoneMsgTemplateVo;
import com.gpframework.module.common.mapper.CommonPhoneMsgTemplateMapper;
import com.gpframework.module.common.service.ICommonPhoneMsgTemplateService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * @ClassName CommonPhoneMsgTemplate
 * @Author gpframework
 * @Date 2022-04-07
 * @Version 1.0.0
 * @Description 手机短信模板Service业务层处理
 */
@Service
public class CommonPhoneMsgTemplateServiceImpl extends ServiceImpl<CommonPhoneMsgTemplateMapper, CommonPhoneMsgTemplate> implements ICommonPhoneMsgTemplateService {

    protected Logger logger = LoggerFactory.getLogger(getClass());


    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2022-04-07
     * @Param [lqw]
     * @Return List<CommonPhoneMsgTemplateVo>
     */
    @Override
    public List<CommonPhoneMsgTemplateVo> listVo(QueryWrapper<CommonPhoneMsgTemplate> lqw) {
        return this.baseMapper.listVo(lqw);
    }

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2022-04-07
     * @Param [id]
     * @Return CommonPhoneMsgTemplateVo
     */
    @Override
    public CommonPhoneMsgTemplateVo getVoById(Long id) {
        return this.baseMapper.getVo(id);
    }

}
